package com.sisyphus.mock.data.entities;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

@Entity(tableName = "posts")
public class PostEntity {

    @PrimaryKey(autoGenerate = true)
    public Long id;

    @ColumnInfo(name = "uid")
    public Long uid;

    @ColumnInfo(name = "content")
    public String content;

    public PostEntity() {
    }

    @Ignore
    public PostEntity(Long uid, String content) {
        this.uid = uid;
        this.content = content;
    }

}
